import { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Layout',
    component: () => import('../layouts/MainLayout.vue'),
    redirect: '/dashboard',
    children: [
      {
        path: '/dashboard',
        name: 'Dashboard',
        component: () => import('../views/Dashboard.vue'),
        meta: { title: '系统总览', icon: 'dashboard' }
      },
      {
        path: '/medicine-management',
        name: 'MedicineManagement',
        component: () => import('../views/MedicineManagement.vue'),
        meta: { title: '药品管理', icon: 'medicine-box' }
      },
      {
        path: '/trace',
        name: 'Trace',
        component: () => import('../views/Trace.vue'),
        meta: { title: '药品追溯', icon: 'apartment' }
      },
      {
        path: '/verification',
        name: 'Verification',
        component: () => import('../views/Verification.vue'),
        meta: { title: '药品验证', icon: 'safety-certificate' }
      },
      {
        path: '/rfid-scan',
        name: 'RfidScan',
        component: () => import('../views/RfidScan.vue'),
        meta: { title: 'RFID扫描', icon: 'scan' }
      }
    ]
  }
]

export default routes 